package com.wish.g04.base.service.impl;

import com.wish.g04.base.dto.RoomInfoDTO;
import com.wish.g04.base.entity.RoomInfo;
import com.wish.g04.base.mapper.RoomInfoMapper;
import com.wish.g04.base.service.IRoomInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wish.g04.base.vo.IdNamePair;
import com.wish.g04.base.vo.RoomInfoResponseVO;
import com.wish.g04.base.vo.RoomInfoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 薛凯
 * @since 2022-05-23
 */
@Service
public class RoomInfoServiceImpl extends ServiceImpl<RoomInfoMapper, RoomInfo> implements IRoomInfoService {

    @Autowired
    private RoomInfoMapper roomInfoMapper;

    @Override
    public List<RoomInfoVO> selectRoomInfoList(RoomInfoDTO roomInfoDTO) {
        return roomInfoMapper.selectRoomInfoList(roomInfoDTO);
    }

    /**
     * 房态图
     * @param roomInfoDTO
     * @return
     */
    @Override
    public List<RoomInfoVO> getList(RoomInfoDTO roomInfoDTO) {
        return roomInfoMapper.getList(roomInfoDTO);
    }

    @Override
    public List<RoomInfoVO> getJzList(RoomInfoDTO roomInfoDTO) {
        return roomInfoMapper.getJzList(roomInfoDTO);
    }

    @Override
    public List<RoomInfoVO> findPageListDetailByJz(RoomInfoDTO roomInfoDTO) {
        return roomInfoMapper.findPageListDetailByJz(roomInfoDTO);
    }

    @Override
    public int queryRoomInfoTotal() {
        return roomInfoMapper.queryRoomInfoTotal();
    }

    @Override
    public List<RoomInfoResponseVO> queryRoomInfoList(HashMap<String, Object> map) {
        return roomInfoMapper.queryRoomInfoList(map);
    }

    @Override
    public IdNamePair<Integer, String> getSubWayByIdList(Integer parseInt) {
        return roomInfoMapper.getSubWayByIdList(parseInt);
    }

    @Override
    public IdNamePair<Integer, String> getBusinessCircleByIdList(String businessCircle) {
        return roomInfoMapper.getBusinessCircleByIdList(businessCircle);
    }
}
